package com.chinasoft.carWithuserservice.service;

import com.chinasoft.ms.dto.CarWithUserDTO;
import com.chinasoft.ms.pojo.CarWithUser;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CarWithUserService {
    PageInfo<CarWithUserDTO> queryByPage(Integer pageNum, Integer pageSize, Long carId, Long userId);
    boolean saveOrUpdate(CarWithUser carWithUser);
    int deleteById(Long id);

    int update(CarWithUserDTO carWithUser);

    int getRoleUserWithId(Long userId);

    int insert(CarWithUserDTO carWithUser);

    public int deleteByCarIdAndUserId(Long CarId);
}
